#ifndef CHANNEL_H
#define CHANNEL_H

#include <QDialog>
#include "plot/paintchannel.h"
#include <QtGui/QDialog>
#include <QtGui>
#include <QVector>
#include "util/complex.h"
#include <cmath>

class Channel : public QDialog
{
    Q_OBJECT
public:
    explicit Channel(QWidget *parent = 0);
    PaintChannel *paintChannel1;
    PaintChannel *paintChannel2;
    PaintChannel *paintChannel3;
    PaintChannel*paintChannel4;
    QVBoxLayout *verticalLayout;
    QGridLayout *gridLayout;
    ~Channel();
    void setPoints(QVector<QPointF> points1, QVector<QPointF> points2, QVector<
                    QPointF> points3, QVector<QPointF> points4,int freq);
    void fft(int lx,  Complex *cx, float signi, float sc);
    void phasic(QVector<QPointF> points1, QVector<QPointF> points2, QVector<
                    QPointF> points3, QVector<QPointF> points4,int freq);


signals:

public slots:

};

#endif // CHANNEL_H
